﻿<!--
模板说明：
-->
#macro(orderPic $type)
#if ($orderField.equals($type)) 
<img src="/images/system/ico/${orderType}.gif">  
#end
#end
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="/include/css/admin.css" rel="stylesheet" type="text/css">
<title>信息管理页面</title>
<script language="JavaScript" src="/include/js/forbidNew.js" type="text/JavaScript"></script>
<script language="JavaScript" src="/include/js/ajaxSupport.js" type="text/JavaScript"></script>
<script language="JavaScript" src="/include/js/public.js" type="text/JavaScript"></script>
<script language="JavaScript">
function doShow()
{
var id=ListForm.cid.value;
if(id=="")
{
alert("请选择要查看的数据！");
return false;
}
window.open("/show.do?cid="+id,"","")
}
function doQuit(id){
	if(!confirm("你确定要退出该圈子吗？")){
		return false;
	}else{
		ListForm.parameter.value = "quit";
		ListForm.cid.value = id;
		ListForm.submit();
	}
}

</script>
</head>

<body bgcolor="#EBF0F4" leftmargin="0" rightmargin="6" topmargin="0" bottommargin="1" scroll="no" onselectstart="return false;">
<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="Border">
  <tr>
    <td height="38" align="center" valign="bottom"><table width="96%" height="34"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="middle"><table width="53%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="10%" valign="bottom"><img src="#if ($dir.tagImg) $dir.tagImg #else /images/system/winzip.jpg #end" width="32" height="32"></td>
                <td width="90%" class="titletxt">博客圈子列表</td>
          </tr>
        </table></td>
        <td width="100">&nbsp;</td>
        <td width="120">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td align="center" valign="top">
	<div style="height:100%;overflow:auto;">
	<form id="ListForm" name="ListForm"  method="post" action="/blogCircle.do">		
	   <input type="hidden" name="parameter" value="">	
	   <input type="hidden" name="cid"   value="$!cid">
	   <input type="hidden" name="mulitCid"   value="$!mulitCid">
       <input type="hidden" name="page"   value="$!page">
       <input name="orderField" type="hidden" value="$!orderField">
       <input name="orderType" type="hidden" value="$!orderType">
	  <!--<input name="dirSn" type="hidden" value="$!parentsn"> -->
	      <table width="96%"  border="1" cellpadding="4" cellspacing="0" bordercolor="#30524D" bgcolor="CBD9D9" class="BorderLine" style="border-collapse: collapse" >
            <thead>
			 <tr valign="middle"> 
                <td height="24" colspan="7" align="center" background="/images/system/index_18.gif" class="title1">
				<table width="100%"  border="0">
                  <tr>
                    <td>圈子：
                      <input name="queryTitle" type="text" size="15" value="$!queryTitle"></td>
                  <td>类别：
                    <select name="bigclass" id="bigclass">
		  $!TagUtil.options($circleDirService.queryBlogCircleDir().result,"cid","title",$cid)
		  </select></td>
                    <td>&nbsp;</td>
                    <td><input type="submit" name="Submit4" value="查询" onClick="doSearch();"></td>
                  </tr>
                </table></td>
              </tr>
              <tr valign="middle"> 
                
                <td width="100" align="center"  style="cursor: hand;" onClick="//doSort('title')" class="title1">圈子名称</td>
                <td width="150" align="center" style="cursor: hand;" onClick="//doSort('intro')"  class="title1">圈子信息</td>
                <td width="80" align="center" nowrap style="cursor: hand;" onClick="//doSort('onwerNick')"  class="title1">圈主</td>
                <td width="80" align="center" nowrap style="cursor: hand;" class="title1">我的身份</td>
                <td width="100" align="center" nowrap style="cursor: hand;" onClick="//doSort('displaytime')" class="title1">状态</td>
                <td width="80" align="center" nowrap  style="cursor: hand;" onClick="//doSort('status')" class="title1">操作</td>
              </tr>
            </thead>
            #foreach( $info in $list) 
            <tr bgcolor="#F8FCF8" class="coolselect" id='$!info.cid' 
			#if($!info.inputuser==$!blog.username) onDblClick="selectRow(this.id);doEdit();" onClick="selectRow(this.id);" #else onMouseOver="this.className='MouseOver';" onMouseOut="this.className='MouseOut'" #end> 
              
              <td height="23" title="111"><div align="left"><a href="/circle/$!info.url" target="_blank">$!info.title</a></div></td>
              <td height="23" title="111"><div align="left">$!info.intro</div></td>
              <td align="center" nowrap><div align="center">$!info.onwerNick</div></td>
              <td align="center" nowrap>
			    <div align="center">
				#if($!info.inputuser==$!blog.username)
			      圈主
			　  #else
			      
			    #end				</div></td>
              <td align="center" nowrap>
			  <div align="center">
			  #if($!member.status==0)
			      审核中
			  #elseif($!member.status==2)
			      锁定中
			  #else
			      正常
			  #end			  </div></td>
              <td align="center" nowrap>
				  <div align="center">
				    #if($!info.inputuser==$!blog.username)
			          <a href="/blogCircleMember.do?cid=$!info.cid">管理</a>
			　      #else
				     <img src="../../../images/icn_exit.gif" style="cursor:pointer" width="13" height="14" onClick="doQuit('$!member.cid')">
					#end				  </div>			  </td>
            </tr>
            #end 
          </table>  
	    </form>
	  </div>	  
	  </td>
  </tr>
  <tr><td align="center" height="25">
   <table width="92%" height="24"  border="0" cellpadding="0" cellspacing="0">
        <tr valign="bottom">
          <td nowrap>第<strong>$!page</strong>页 共<strong>$!pages</strong>页<span class="txt1">[共<b>$!rows</b>条记录]</span> 　　分页：$!gotoPageHTML　</td>
        </tr>
      </table>
  </td></tr>
  <tr>
    <td height="40" align="left" valign="middle"><table height="30"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="50" align="left" valign="middle">&nbsp;</td>
        <td width="50" align="center" valign="middle"><input type="submit" name="Submit" value="添加" onClick="doAdd();">
        </td>
        <td width="50" align="center" valign="middle"><input type="submit" name="Submit2" value="修改" onClick="doEdit();"></td>
        <td width="50" align="center" valign="middle"><input type="submit" name="Submit323" value="预览" onClick="doShow();"></td>
        <td width="50" align="center" valign="middle"><input type="submit" name="Submit322" value="删除" onClick="doDel();"></td>
      </tr>
    </table></td>       
  </tr>
</table>
</body>
</html>
#if ($msg)
<script>
alert('$!msg');</script>
#end
